<%--
  Created by IntelliJ IDEA.
  systemParam: lichengming
  Date: 2017/6/15
  Time: 下午12:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>系统管理和模块管理</title>
    <script type="text/javascript">


        var status = {};

        $("#getSystemStatus").change(function(){
            status = $(this).val();
        });

        function systemNameEdit() {
            var result = false;
            $.emsAjax({
                url:"/starCms/configuration/systemNameEditToSave",
                data:{
                    id:"${system.id}",
                    systemName:$("#editSystemName").val(),
                    status:status

                },
                success:function(resp) {
                    if (resp.status == "000") {
                        $.alert(resp.message,null,null,function () {
                            window.location.href = "/starCms/configuration/sysAndMolAdd"
                        })
                    }else $.errorAlert(resp.message);
                }
            });
            return result;
        }
    </script>
</head>
<body>
<form class="form-horizontal" id="systemModule">
    <div class="form-group">
        <label for="editSystemName" class="col-sm-4 control-label">系统名称：</label>
        <div class="col-sm-8">
            <input type="text" class="form-control"
                   id="editSystemName" value="${system.system_name}" placeholder="系统名称" >
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-4 control-label">系统状态：</label>
        <div class="col-sm-8">
            <select id="getSystemStatus" class="form-control">
                <option value="-1">请选择</option>
                <option value="1">启动</option>
                <option value="0">停用</option>
            </select>
        </div>
    </div>
</form>
</body>
</html>